package com.service;

import com.model.Clazz;
import com.model.Paper;
import com.model.Proanswer;
import com.model.Programming;
import com.model.User;
import com.util.Pagination;

public interface TeacherService {

    // 获取试卷表
    public Pagination getPageList(User user, Pagination page, Paper paper);

    // 删除试卷
    public boolean delPaper(int id);

    // 添加编程题
    public void addProgram(Programming programming);

    // 添加试卷
    public void addPaper(Paper paper);

    // 编辑试卷
    public void updatePaper(Paper paper);

    // 编辑题目
    public void updateProgram(Programming programming);

    // 计算一共所有编程题
    public int countProgram(Programming programming);

    // 查试卷
    public Paper findByid(Integer id);

    // 编程题列表
    public Pagination getPrograms(Pagination page, Programming program, String papername, User temp);

    // 查编程题
    public Programming findProByid(int id);

    public int countPaper();

    // 查编程题
    public Programming findProgram(Programming program);

    // 查分数
    public Pagination StuScore(Proanswer proanswer, Pagination paperPage);

    public Clazz findClazzById(int parseInt);

    public Pagination getMyPageList(User temp, Pagination paperPage, Paper paper);

    public void deletePaperProgram(String paperid, String id);

    public void ProgramDel(String id);

    public int getPaperScore(int parseInt);

    public void delPaperClazz(int cid, Integer paperId);

    public Pagination getProgramBlanks(Pagination paperPage, Programming programming, String papername, User temp);

}
